﻿using OpenQA.Selenium;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MoocProject
{
    public interface ICrawService:IDisposable
    {
		public IWebDriver Driver { get; set; }
		public void GoToUrl(string url);
		public Task<IWebElement> GetElement(By selector);
		public IWebElement GetElement(IWebElement element, By selector);
		public IReadOnlyCollection<IWebElement> GetElements(IWebElement element, By selector);
		public Task<IReadOnlyCollection<IWebElement>> GetElements(By selector);
		public Task SaveCookies();
		public Task LoadCookiesFromFile();
		public void GoToUrlFromNewWindow(string url);
		public Task<List<List<string>>> GetQuestionUrls();
		public void CopyImageToBox();
		public void ScrollToEnd();
		public new void Dispose();

	}
}
